package com.ruoyi.message.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.message.mapper.MessageShareMapper;
import com.ruoyi.message.domain.MessageShare;
import com.ruoyi.message.service.IMessageShareService;

/**
 * 分享记录Service业务层处理
 * 
 * @author hct
 * @date 2022-04-14
 */
@Service
public class MessageShareServiceImpl implements IMessageShareService 
{
    @Autowired
    private MessageShareMapper messageShareMapper;

    /**
     * 查询分享记录
     * 
     * @param id 分享记录主键
     * @return 分享记录
     */
    @Override
    public MessageShare selectMessageShareById(Long id)
    {
        return messageShareMapper.selectMessageShareById(id);
    }

    /**
     * 查询分享记录列表
     * 
     * @param messageShare 分享记录
     * @return 分享记录
     */
    @Override
    public List<MessageShare> selectMessageShareList(MessageShare messageShare)
    {
        return messageShareMapper.selectMessageShareList(messageShare);
    }

    /**
     * 新增分享记录
     * 
     * @param messageShare 分享记录
     * @return 结果
     */
    @Override
    public int insertMessageShare(MessageShare messageShare)
    {
        return messageShareMapper.insertMessageShare(messageShare);
    }

    /**
     * 修改分享记录
     * 
     * @param messageShare 分享记录
     * @return 结果
     */
    @Override
    public int updateMessageShare(MessageShare messageShare)
    {
        return messageShareMapper.updateMessageShare(messageShare);
    }

    /**
     * 批量删除分享记录
     * 
     * @param ids 需要删除的分享记录主键
     * @return 结果
     */
    @Override
    public int deleteMessageShareByIds(Long[] ids)
    {
        return messageShareMapper.deleteMessageShareByIds(ids);
    }

    /**
     * 删除分享记录信息
     * 
     * @param id 分享记录主键
     * @return 结果
     */
    @Override
    public int deleteMessageShareById(Long id)
    {
        return messageShareMapper.deleteMessageShareById(id);
    }
}
